package cn.whb.hrm.feign;

import cn.whb.hrm.domain.LoginUser;
import cn.whb.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "auth-server",fallbackFactory = LoginUserFallbackFactory.class)
@RequestMapping("/loginUser")
public interface ILoginUserFeignClient {
    @PostMapping("/entering")
    AjaxResult entering(@RequestBody LoginUser loginUser);
}
